home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1992 …SCII & the Runetime Code / ADC Developer CD (1992-07) (''Butch ASCII And The Runtime Code'')_iso / Dev.CD 199207.iso / Tools & Apps / OS⁄Toolbox / Apple Events / AE Word Services 1.0d6 / Read Me First! < prev    next >
Encoding:
Text File  |  1992-05-14  |  2.9 KB  |  48 lines  |  [ttro/ttxt]

  1. Word Services SDK Release Notes
  2.  
  3. Be sure that you have a debugger installed on the machine that you run these on, because any errors cause calls to the debugger.  If you don't have a debugger, you will get an "Unimplemented A-Trap" if any sort of an error occurs.  You may use Macsbug, Jasik's Debugger, TMON, etc.
  4.  
  5. The source is included to the text editor.  We plan to distribute the source free of charge, but please don't distribute this yet.  I want to add some more stuff, and fix some bugs.
  6.  
  7. Double-click "IAC Spell Test".  Then drag "testtext" onto the "Writeswell Jr." icon.   Select "Get New Batch Service" from Writeswell Jr.'s menu.  Select the speller in the browser.  This adds "Check Spelling with IAC Spell Test" to the Services Menu.    Then you can use this menu item to check spelling.  After this initial setup the menu item will launch the speller whether  it is running in the background or not, making it invisible to the user that the speller is not a built-in menu item.
  8.   
  9. Position the speller's window so you can see the text in Writeswell Jr., and hit skip or replace as you like.
  10.  
  11. The technique that I use for handling Apple Events is the "Object First Approach" described by Richard Clark in the May, 1992 issue of d e v e l o p, in the article "Apple Event Objects and You." 
  12.  
  13. I call this an "inverted" handling method myself in the code.  I resolve the object specifier first (in a wildcard handler), and then pass the token to a dispatcher that calls the functions to actually do the event.  The "normal" way to do it is to install a handler for each event, resolve the object specifier, and then call code to do the event for each type.  The object first approach allows new data types to be added in a simpler manner.
  14.  
  15. I highly recommend reading Richard's article while studying this code.
  16.  
  17. The Object Support Library on this disk is converted from the MPW OSL using the ThinkC "oConv" utility.  If you want to do the conversion yourself, use the vocabulary file in the Apple Libraries folder.  If you convert without using the vocabulary file, the OSL function names will all be uppercase.
  18.  
  19. Enjoy!
  20.  
  21. Mike Crawford
  22. Working Software, Inc.
  23. AppleLink D1620
  24. Compuserve 76004,2072
  25.  
  26. Change History:
  27.  
  28. 1.0d5
  29.  
  30. Changed the name of the text editor to "Writeswell Jr."
  31.  
  32. Changed services menu to get menu strings from the speller.  Selecting the speller's item will launch the speller if it is not already running.
  33.  
  34. Added the preferences file.
  35.  
  36. Made the window resizable and scrollable.
  37.  
  38. Made the speller respond immediately to batch events so it can respond when launched by the editor.  Before, it needed a couple null events before it would start responding to batch events.
  39.  
  40. 1.0d3
  41.  
  42. Changed the icons
  43.  
  44. Fixed some bugs in the speller that would cause out of memory errors (these were in the speller code itself, and not the IAC stuff)
  45.  
  46. Neatened up the speller dialogs a bit.
  47.  
  48. Recompiled with ThinkC 5.0.2.